/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

/**
 * <p>Project: jse2303 - For4
 * <p>Powered by webrx On 2023-07-11 15:30:38
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class For10 {
    public static void main(String[] args) {
        int sum = 0;
        ok:
        for (int i = 2; i <= 100; i++) {
            for (int j = 2; j < i; j++) if (i % j == 0) continue ok;
            sum += i;
        }
        System.out.println();//5 3 1(3) 100 = 100
        System.out.println("1-100素数和:" + sum);
    }
}
